<template>
    <!-- 整体背景 -->
    <div class="login-wrap">
      <!--输入框-->
      <div class="form-wrapper">
        <div class="header">
          music manage
        </div>
        <div class="input-wrapper">
          <div class="border-wrapper">
            <input type="text" name="username" placeholder="username" class="border-item" autocomplete="off" />
          </div>
          <div class="border-wrapper">
            <input type="password" name="password" placeholder="password" class="border-item" autocomplete="off" />
          </div>
        </div>
        <div class="action">
          <div class="btn">login</div>
        </div>
      </div>
    </div>
  </template>
  
  <style scoped>
  .login-wrap {
    height: 100vh; /* 改为100vh适配全屏 */
    font-family: JetBrains Mono Medium;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('@/assets/02.png') no-repeat center center/cover; /* 优化背景图片样式 */
  }
  
  .form-wrapper {
    width: 300px;
    background-color: rgba(41, 45, 62, 0.8);
    color: #fff;
    border-radius: 10px; /* 改为10px使其看起来更圆润 */
    padding: 50px;
  }
  
  .header {
    text-align: center;
    font-size: 35px;
    text-transform: uppercase;
    line-height: 100px;
  }
  
  .input-wrapper {
    display: flex;
    flex-direction: column;
  }
  
  .input-wrapper .border-wrapper {
    background-image: linear-gradient(to right, #e8198b, #0eb4dd);
    width: 100%;
    height: 50px;
    margin-bottom: 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .border-item {
    height: calc(100% - 4px);
    width: calc(100% - 4px);
    border-radius: 30px;
    background-color: rgb(41, 45, 62);
    border: 0;
    text-align: center;
    font-size: 15px;
    color: #fff;
    outline: none;
  }
  
  .border-item::placeholder {
    text-transform: uppercase;
  }
  
  .action {
    display: flex;
    justify-content: center;
  }
  
  .btn {
    width: 60%;
    text-transform: uppercase;
    border: 2px solid #0e92b3;
    text-align: center;
    line-height: 50px;
    border-radius: 30px;
    cursor: pointer;

    

  }
  
  .btn:hover {
    background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
  }
  
  .icon-wrapper {
    text-align: center;
    width: 60%;
    margin: 0 auto;
    margin-top: 20px;
    border-top: 1px dashed rgb(146, 146, 146);
    padding: 20px;
  }
  
  .icon-wrapper i {
    font-size: 20px;
    color: rgb(187, 187, 187);
    cursor: pointer;
    border: 1px solid #fff;
    padding: 5px;
    border-radius: 20px;
  }
  
  .icon-wrapper i:hover {
    background-color: #0e92b3;
  }
  </style>
  